package test0103.test01;

public class Position {
    int id;
    String name;
    double wage; // 更改 wage 类型为 double
    Department department;

    public Position() {
    }

    public Position(int id, String name, double wage, Department department) {
        this.id = id;
        this.name = name;
        this.wage = wage;
        this.department = department;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getWage() {
        return wage;
    }

    public void setWage(double wage) {
        this.wage = wage;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    @Override
    public String toString() {
        return "Position{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", wage=" + wage +
                ", department=" + department +
                '}';
    }
}
